home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_349_1180 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2008-09-26  |  680 b   |  34 lines

  1. onClipEvent(enterFrame){
  2.    _root.mojo_lvl = Math.round(mojo);
  3.    mojo_color = new Color(_root.mojolife);
  4.    if(mojo > 100)
  5.    {
  6.       _global.mojo = 100;
  7.    }
  8.    if(mojo <= 0)
  9.    {
  10.       stopAllSounds();
  11.       _global.final_score = _parent.score;
  12.       _parent.gotoAndStop("oops");
  13.       this._xscale = 0;
  14.       setProperty(_root.drag, _visible, false);
  15.    }
  16.    else
  17.    {
  18.       this._xscale = mojo;
  19.    }
  20.    if(mojo < 30)
  21.    {
  22.       mojo_color.setRGB(16711680);
  23.       _parent.low.gotoAndPlay("playlow");
  24.    }
  25.    if(mojo < 60 && mojo > 30)
  26.    {
  27.       mojo_color.setRGB(16750848);
  28.    }
  29.    if(mojo > 60)
  30.    {
  31.       mojo_color.setRGB(6737151);
  32.    }
  33. }
  34.